<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    const object1 = { foo: 'bar', baz: 42 };
    console.log(Object.entries(object1)[1]);
    // expected output: Array ["baz", 42]

    const object2 = { 0: 'a', 1: 'b', 2: 'c' };
    console.log(Object.entries(object2)[2]);
    // expected output: Array ["2", "c"]

    const object3 = { 100: 'a', 2: 'b', 7: 'c' };
    console.log(Object.entries(object3)[0]);
    // expected output: Array ["2", "b"]
</script>
</html>